From be09e0ed4ac3c98d2973f98e10d96f86832fb49f Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Fri, 18 Jul 2014 20:12:39 +0200 Subject: [PATCH] stylecontext: Set state flags on widget paths Set the widget path state flags with the state flags of the style context. We do not update the state flags but replace the previous one because we want to be able to have save()/restore() unset state flags. --- gtk/gtkstylecontext.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c index fd804b291e..3d1e78876e 100644 --- a/gtk/gtkstylecontext.c +++ b/gtk/gtkstylecontext.c @@ -747,6 +747,10 @@ G_GNUC_END_IGNORE_DEPRECATIONS g_quark_to_string (quark)); } + /* Set widget state */ + gtk_widget_path_iter_set_state (path, pos, + gtk_widget_path_iter_get_state (path, pos) | info->state_flags); + return path; } -- 2.30.2